<?php
namespace app\shop\model;

use think\Model;

use app\admin\model\Attachment;

/**
 * 艺术品分类
 * @package app\admin\model
 */
class ArtworkGroup extends Model
{
    protected $name = 'shop_artwork_group';

    protected $autoWriteTimestamp = true;

    public function getimgpath()
    {
    	return $this->hasOne(Attachment::class, 'id', 'photo');
    }
}